package com.itheima;
import org.dom4j.io.SAXReader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;

/**
 * CTassName: ${NAME}
 * Package: itheima
 * Description:
 *
 * @Author xw
 * @Create 2023/11/4 18:22
 * @Version 1.0
 */


@SpringBootApplication
@ServletComponentScan  // 开启了对servlet组件的支持
public class Main {
    public static void main(String[] args) {

        SpringApplication.run(Main.class,args);

    }


    // 声明第三方
    @Bean //将方法返回值交给IOC容器管理，成为IOC容器的bean对象
    public SAXReader saxReader(){

        return new SAXReader();
    }

}